package com.dfd.mango.consumer.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试Config功能是否正常
 *
 * @author DFD
 * @date 2021/8/19 22:41
 */
@RefreshScope
@RestController
public class ConfigController {
    @Value("${config.hello}")
    private String hello;

    @RequestMapping("config/hello")
    public String hello() {
        return hello;
    }
}
